{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_gjw/template/public/ygcss.css">
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li><a href="{php echo $this->createWebUrl('applymoney')}">提现管理</a></li>
    <li class="active"><a href="javascript:void(0);">提现设置</a></li>
</ul>
<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <!--<input type="hidden" name="parentid" value="{$parent['id']}" />-->
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                商户提现设置
            </div>
            <div class="panel-body">
                <div class="form-group">
                  <label for="lastname" class="col-sm-2 control-label">提现方式</label>
                  <div class="col-sm-9">
                  <label class="radio-inline">
                    <input type="radio" id="emailwy0" name="mode" value="0" {if $item['mode']==0 || empty($item['mode'])}checked{/if} />
                    <label for="emailwy1">全部</label>
                  </label>
                  <label class="radio-inline">
                    <input type="radio" id="emailwy1" name="mode" value="1" {if $item['mode']==1}checked{/if} />
                    <label for="emailwy1">手动打款</label>
                  </label>
                  <label class="radio-inline">
                    <input type="radio" id="emailwy2" name="mode" value="2" {if $item['mode']==2}checked{/if} />
                    <label for="emailwy2">自动打款</label>

                  </label>
                  <span class="help-block">*设置为自动打款默认到微信钱包(需开通企业付款到用户功能,需上传证书),设置为手动打款默认为线下操作打款。(全部：微信、支付宝账号转账、银行卡转账；手动：支付宝账号转账、银行卡转账；自动：微信；)</span>
                </div>
               
                <div class="form-group">
                  <label class="col-xs-12 col-sm-3 col-md-2 control-label">最低提现金额</label>
                    <div class="col-sm-9">
                        <p class="input-group">
                             <input type="text" name="min" value="{$item['min']}" id="points" class="form-control" />
                             <span class="input-group-addon">元</span>
                        </p>
                        <div class="help-block">*最低提现金额，建议填写整数，不填写为不限制</div>
                 </div>
                </div>

                <div class="form-group">

                  <label class="col-xs-12 col-sm-3 col-md-2 control-label">提现手续费率</label>

                  <div class="col-sm-9">

                    <div class="input-group">

                     <input type="text" name="rate" value="{$item['rate']}"  class="form-control" />

                     <span class="input-group-addon">%</span>

                   </div>

                   <span class="help-block">*用户申请提现时，每笔申请提现扣除的费用(扣除的费用=提现*费率%)，默认为空，即提现不扣费</span>

                </div>
                
                <div class="form-group">
                  <label class="col-xs-12 col-sm-3 col-md-2 control-label">提现须知</label>
                  <div class="col-sm-9">
                       {php echo tpl_ueditor('cashrule',$item['cashrule']);}
                  </div>
                </div>
      

             </div>
        </div>
        <div class="form-group">
            <input type="submit" name="submit" value="提交" class="btn col-sm-3" style="color: white;background-color: #44ABF7;"/>
            <input type="hidden" name="token" value="{$_W['token']}" />
             <input type="hidden" name="id" value="{$item['id']}" />
        </div>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        // $("#frame-13").addClass("in");
        $("#frame-8").show();
        $("#yframe-8").addClass("wyactive");
    })
</script>